package generic;
/*
* 测试含有泛型的接口
* */
public class Demo4GenericInterface {
    public static void main(String[] args) {
        //创建对象
        GenericInterfaceImpl1 impl = new GenericInterfaceImpl1();
        impl.method("字符串");

        //创建第二个对象
        GenericInterfaceImpl2 impl2 = new GenericInterfaceImpl2();
        impl2.method("字符串");
        impl2.method(2);
        impl2.method(0.1);
    }
}
